<?php $this->_extends(Helper_Store::layout()); ?>
<?php $this->_block('title'); ?> <?=$store['name']?> <?php $this->_endblock(); ?>
<?php $this->_block('contents'); ?>
<?=Helper_Definedhtml::load($store['store_id'],'Define_banner1.html',$this->_vars);?>
<div id="MainWrap">
	<div id="InnerLeftColumn">
		<?php $this->_element('categories'); ?>
		<?php $this->_element('tags'); ?>
	</div>
	<div id="InnerRightColumn"><div class="Navigation"></div>
	<div>
		<?=Helper_Definedhtml::load($store['store_id'],'Define_Default_Index_Main.html',$this->_vars);?>
	</div>
	
	<div>

	</div>


<div class="border1" id="special">
    <div class="border-top">
      <div class="bg"></div>
    </div>
    <div class="border-body">
	<div class="bg">
         <h3>  special  zone</h3>
<style>
.itemsWrap{*display:inline;float:left;overflow:hidden;}
</style>
	<div class="GoodsListWrap">
    <div class="GoodsList">
	<?php 
	//Helper_Util::$MaxImgSize=array('with'=>120,'height'=>160);
	$imgresize=array('width'=>Store_Configs::get('simallimgwidth'),'height'=>Store_Configs::get('simallimgheight'));
	$i=0; foreach($goods_special as $g):
	if(strlen($g->img)){
		$imgurl=$_BASE_DIR.Q::ini('app_config/PRODUCTIMG_BASEDIR').'/small/'.$g->img;
	}elseif(strlen($g->imgurl)){
		//$imgresize=Helper_Util::ratioImgSize($g->imgurl);
		$imgurl=$g->imgurl;
	}
	?>
    <div class="itemsWrap " style="width:24%;">
      <div class="item">
        <div class="goodsImg" style="overflow:hidden;text-align:center;vertical-align: middle;width:120px;height:160px;">
		<a href="<?=_url('product',array('goods_id'=>$g->goods_id))?>" title="<?=$g->title?>"><img  src="<?=$imgurl?>" alt="<?=$g->title?>" width="<?=$imgresize['width']?>" height="<?=$imgresize['height']?>" ></a></div>
        <b><a href="<?=_url('product',array('goods_id'=>$g->goods_id))?>" title="<?=$g->title?>"><?=$g->title?></a></b>
        <ul>
          <li><span class="price0"></span><span class="price1" style="color:#FF9900;"><?=Helper_currency::fetch($g->price,$g->currency)?></span></li>
        </ul>
   	    </div>
	   </div>
	   
		<?php  if(++$i%4==0){echo '<div class="clear"></div>';} endforeach;?>
		<div class="clear"></div>
		<div class="clear"></div>
	  </div>
	  
	  
	  <div class="more clearfix"><a href="<?=_url('list',array('tag'=>'special'))?>"><?=_L('more')?>...</a></div>
	</div>
</div>
</div>
 <div class="border-foot">
    <div class="bg"></div>
 </div>
</div>

	
	<div style="clear:both"></div>
	
	
	
  <div class="border1" id="hot">
    <div class="border-top">
      <div class="bg"></div>
    </div>
    <div class="border-body">
	<div class="bg">
        <h3>  welkly best </h3>
        <style>
.itemsWrap{*display:inline;float:left;overflow:hidden;}
</style>

	<div class="GoodsListWrap">
    <div class="GoodsList">
	<?php $i=0; foreach($goods_hot as $g):
		if(strlen($g->img)){
			$imgurl=$_BASE_DIR.Q::ini('app_config/PRODUCTIMG_BASEDIR').'/small/'.$g->img;
		}elseif(strlen($g->imgurl)){
			//$imgresize=Helper_Util::ratioImgSize($g->imgurl);
			$imgurl=$g->imgurl;
		}
	?>
    <div class="itemsWrap " style="width:24%;">
      <div class="item">
        <div class="goodsImg" style="overflow:hidden;text-align:center;vertical-align: middle;width:120px;height:160px;">
		<a href="<?=_url('product',array('goods_id'=>$g->goods_id))?>" title="<?=$g->title?>"><img   src="<?=$imgurl?>" alt="<?=$g->title?>"  width="<?=$imgresize['width']?>" height="<?=$imgresize['height']?>" ></a></div>
        <b><a href="<?=_url('product',array('goods_id'=>$g->goods_id))?>" title="<?=$g->title?>"><?=$g->title?></a></b>
        <ul>
          <li><span class="price0"></span><span class="price1" style="color:#FF9900;"><?=Helper_currency::fetch($g->price,$g->currency)?></span></li>
        </ul>
   	    </div>
	   </div>
	   
		<?php  if(++$i%4==0){echo '<div class="clear"></div>';} endforeach;?>
		<div class="clear"></div>
		<div class="clear"></div>
	  </div>
	  
	  
	  <div class="more clearfix"><a href="<?=_url('list',array('tag'=>'hot'))?>"><?=_L('more')?>...</a></div>
	</div>
</div>
</div>
 <div class="border-foot">
    <div class="bg"></div>
 </div>
</div>


	
</div>

<?php $this->_endblock('contents'); ?>
